@import models.Tables.VisitorRow
@(visitors: Seq[VisitorRow])
@admin.main("visitor") {
	<div class="panel panel-default" style="margin-bottom: 5px">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="fa fa-home">
			</span> Visitor message
				<span style="float: right;font-size: 15px">Total access @(visitors.size) people</span>
			</h3>
		</div>

		<div class="panel-body">
			<div class="row">


			</div>


			<div class="table-responsive panel-collapse collapse in " id="showtable">
				<table class="display table table-bordered" id="table" data-pagination="true" data-search="true"
				data-page-list="[10, 25, 50, 100, all]" data-multiple-search="true">
					<thead>
						<tr>
							<th data-field="circid" data-sortable="true" >Ip</th>
							<th data-field="circbaselinks" data-sortable="true" >Time</th>
						</tr>
					</thead>
					@for(visitor <- visitors) {
						<tr>
							<td>@visitor.ip</td>
							<td>@visitor.time</td>
						</tr>

					}
				</table>
			</div>
		</div>
	</div>

	<script>
			$('#table').bootstrapTable({});

	</script>


}